<div class="profileMain-content">
    @if (count($topics))
        @foreach ($topics as $topic)
            <div class="list-item">
                <div class="col-md-1">
                    @if($topic->reply_count>0)
                        <span class="ui label green"> {{$topic->reply_count}} 回答</span>
                    @else
                        <span class="ui label yellow"> {{$topic->reply_count}} 回答</span>
                    @endif
                </div>
                <div class="col-md-9">
                    <a href="{{ $topic->link() }}">{{ $topic->title }}</a>
                </div>
                <div class="col-md-2">
                    {{--<span>{{$question->created_at->format('Y年m月d日')}}</span>--}}
                    <span>{{ $topic->created_at->diffForHumans() }}</span>
                </div>
            </div>
        @endforeach
    @else
        <div class="empty-block">暂无数据 ~_~</div>
    @endif
</div>
<div class="col-md-9">
    {{-- 分页 --}}
    {!! $topics->render() !!}
</div>